
public class EqualityExpr {
	AdditiveExpr ae;
	EqualityExpr2 ee2;
	
	public EqualityExpr ( AdditiveExpr ae, EqualityExpr2 ee2){
		this.ae = ae;
		this.ee2 = ee2;
	}
	public String toString(){
		String ret = "";

		String s = "";
		if (ae != null) {
			s +=  ae.toString();
		}
		if (ee2 != null) {
			ret+="EqualityExpr\n";
			s +=  ee2.toString();
		}
		for(String st: s.split("\n")){
			if(st!= "")
				ret += "| " + st + "\n";
		}
		return ret;
	}
	public void check() throws SemanticException {
		if (ee2 != null) {
			//System.out.println("in EqualityExpr 1");
			ee2.check();
		}
		if (ae != null) {
			//System.out.println("in EqualityExpr 2");
			ae.check();
		}
	}
}
